package com.zhiwang.planet.mvvm.viewmodel.entertain

import android.util.Log
import com.zhiwang.planet.ui.main.PlayGameProxy

class MyGameItemViewModel constructor(var gameid: String, var gamename: String, var icon: String, var tags: List<String>, var cb: PlayGameProxy?) {

    val TAG = "MyGameItemViewModel"
    init {

        Log.i(TAG, ": $tags")
    }

    var more = false

    constructor() : this("", "", "", listOf(), null) {

        more = true

    }

    fun play() {
        if (more) {
            cb?.more()
        } else {
            cb?.play(gameid)
        }
    }

}